#define _CRT_SECURE_NO_WARNINGS 1

#include <algorithm>
#include <iostream>
using namespace std;
int main() {
	string st1;
	cin >> st1;
	reverse(st1.begin(), st1.end());
	cout << st1 << endl;
}
